package com.aliyun.messagemgt.application.service.Impl;

import com.aliyun.messagemgt.application.service.BaseTenantUserService;
import com.aliyun.messagemgt.domain.repository.IBaseTenantUserRepository;
import com.aliyun.messagemgt.dto.base.BaseTenantUserDTO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName: BaseTetantUserServiceImpl
 * @Description:
 * @Author: wugongzi
 * @Date: 2021/10/12 9:45
 * @Version: 1.0
 */
@Service
public class BaseTenantUserServiceImpl implements BaseTenantUserService {

    @Autowired
    private IBaseTenantUserRepository baseTenantUserRepository;

    @Override
    public List<BaseTenantUserDTO> select(String userId) {
        return baseTenantUserRepository.getBaseTenantUserDTOByUserId(userId);
    }
}
